<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type='text/javascript' src='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/hdjs/hdui/css/hdui.css' rel='stylesheet' media='screen'>
<script src='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/hdjs/hdui/js/hdui.js'></script>
<link href='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/js/hdvalidate.js'></script>
<script src='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/cal/lhgcalendar.min.js'></script>
<script src='http://localhost/HDPHP/hdphp/hdphp/Extend/Org/hdjs/hdslide/js/hdslide.js'></script>
<script type='text/javascript'>
HOST = 'http://localhost';
ROOT = 'http://localhost/me/12.6/ccl_eshop/Eshop';
WEB = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php';
URL = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php/Admin/Role/index';
APP = 'http://localhost/me/12.6/ccl_eshop/Eshop/Eshop';
COMMON = 'http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Common';
HDPHP = 'http://localhost/HDPHP/hdphp/hdphp';
HDPHPDATA = 'http://localhost/HDPHP/hdphp/hdphp/Data';
HDPHPEXTEND = 'http://localhost/HDPHP/hdphp/hdphp/Extend';
MODULE = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php/Admin';
CONTROLLER = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php/Admin/Role';
ACTION = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php/Admin/Role/index';
STATIC = 'http://localhost/me/12.6/ccl_eshop/Eshop/Static';
HDPHPTPL = 'http://localhost/HDPHP/hdphp/hdphp/Lib/Tpl';
VIEW = 'http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Admin/View';
PUBLIC = 'http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Admin/View/Public';
CONTROLLERVIEW = 'http://localhost/me/12.6/ccl_eshop/Eshop/Eshop/Admin/View/Role';
HISTORY = 'http://localhost/me/12.6/ccl_eshop/Eshop/index.php/Admin/Index/left';
</script>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="<?php echo U('index');?>" class="action">角色列表</a></li>
				<li><a href="<?php echo U('add');?>">角色添加</a></li>
			</ul>
		</div>
		<form action="" method="post">
			<table class="table2">
				<thead>
					<tr>
						<td class="w100">RID</td>
						<td>角色名</td>
						<td>描述</td>
						<td>操作</td>
					</tr>
				</thead>
				<tbody>				
					<?php $hd["list"]["r"]["total"]=0;if(isset($role) && !empty($role)):$_id_r=0;$_index_r=0;$lastr=min(1000,count($role));
$hd["list"]["r"]["first"]=true;
$hd["list"]["r"]["last"]=false;
$_total_r=ceil($lastr/1);$hd["list"]["r"]["total"]=$_total_r;
$_data_r = array_slice($role,0,$lastr);
if(count($_data_r)==0):echo "";
else:
foreach($_data_r as $key=>$r):
if(($_id_r)%1==0):$_id_r++;else:$_id_r++;continue;endif;
$hd["list"]["r"]["index"]=++$_index_r;
if($_index_r>=$_total_r):$hd["list"]["r"]["last"]=true;endif;?>

						<tr>
							<td><?php echo $r['rid'];?></td>
							<td><?php echo $r['rname'];?></td>
							<td><?php echo $r['title'];?></td>
							<td>
								<a href="<?php echo U('edit',array('rid'=>$r['rid']));?>">编辑</a> | 
								<a href="<?php echo U('del',array('rid'=>$r['rid']));?>">删除</a>
							</td>
						</tr>
					<?php $hd["list"]["r"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
				</tbody>
			</table>		
		</form>
		
	</div>
</body>
</html>